<?php

namespace App\Repositories;

use App\Models\PlatformMsg;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class PlatformMsgRepository
 * @package App\Repositories
 * @version January 12, 2018, 10:44 am CST
 *
 * @method PlatformMsg findWithoutFail($id, $columns = ['*'])
 * @method PlatformMsg find($id, $columns = ['*'])
 * @method PlatformMsg first($columns = ['*'])
*/
class PlatformMsgRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'park_code',
        'type',
        'message',
        'start_time',
        'end_time',
        'status',
        'mode'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return PlatformMsg::class;
    }
}
